package com.ruoyi.app.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;


@NoArgsConstructor
@AllArgsConstructor
@Data
public class LogManagement implements Serializable {
	//id
	private Long id;
	//操作
	private String operation;
	//模块
	private String module;
	//参数
	private String params;
	//ip
	private String ip;
	//操作用户id
	private Long userId;
	//操作用户所属公司
	private String companyName;
	//用户名
	private String username;
	//姓名
	private String name;
	//操作时间
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date date;
}
